home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / dev / c / AmiVoGL_MDEV.lha / examples / Makefile.xlf < prev    next >
Makefile  |  1991-08-29  |  777b  |  40 lines

  1. #
  2. # examples makefile 
  3. #
  4. FEXAMPS = ftrivial fsimple fshapes fpoly fviews fcirctxt fmoretxt fcurves \
  5.       fmoretx2 fpatches fballs fobjvws fworld floc ftetra fcube \
  6.       flcube fsinwave
  7.  
  8. FOBJS = ftrivial.o fsimple.o fshapes.o fpoly.o fviews.o fcirctxt.o fmoretxt.o \
  9.     fmoretx2.o fcurves.o fpatches.o fballs.o fobjvws.o fworld.o floc.o \
  10.     ftetra.o fcube.o flcube.o fsinwave.o
  11.  
  12. #
  13. # Where to find library
  14. LIB = ../hershey/src/libhershey.a ../src/libvogl.a
  15. LIBS = -lX11
  16. #
  17.  
  18. .SUFFIXES: .F .o
  19.  
  20. F77 = xlf
  21.  
  22. MFFLAGS = 
  23. FFLAGS = $(MFFLAGS) -I../src
  24. CPPFLAGS = -P -I../src
  25.  
  26. .F.o:
  27.     /lib/cpp $(CPPFLAGS) $*.F > $*.f
  28.     $(F77) -c $(FFLAGS) $*.f
  29.  
  30. all:    $(FEXAMPS)
  31.  
  32. $(FEXAMPS): $(FOBJS) $(LIB)
  33.     $(F77) $(FFLAGS) -o $@ $@.o $(LIB) $(LIBS) 
  34.  
  35. clean:
  36.     rm -f *.o core
  37.  
  38. clobber:
  39.     rm -f $(FEXAMPS) *.o core
  40.